<?php
namespace app\shop\validate\company;
use think\Validate;
class Station extends Validate
{
    protected $rule = [
        'id' => 'require',
        'department_id' => 'require',
        'title' => 'require',
    ];
    protected $message = [
        'id.require' => '参数错误',
        'department_id.require' => '请选择部门',
        'title.require' => '请输入名称',
    ];
    protected $scene = [
        'save' => ['department_id', 'title'],
        'info' => ['id'],
    ];
}